﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XBD.MyBaseCode
{
    internal class loop
    {
        public void test()
        {
            //计数器
            for (int counter = 0; counter < 10; counter++)
            {
                if (counter%2 == 0) 
                {
                    //Console.WriteLine("循环终止");
                    continue;
                }
                Console.WriteLine(counter);
            }
            /*  int counter1 = 0;

              while (counter1 < 5)
              {
                  Console.WriteLine(counter1);
                  counter1++;
              }

              int counter2 = 0;
              do
              {
                  Console.WriteLine(counter2);
                  counter2++;
              }
              while (counter2<5);*/
            Console.ReadLine();

        }


    }
}
